package MyComponent.Events// ActionScript file
{
	import flash.events.Event;

	public class MyScrollEvent extends Event
	{
		public static const Scroll:String="scroll";
		private var _scrollPosition:Number;
		private var _maxScrollPosition:Number;
		public function MyScrollEvent(scrollPosition:Number,maxScrollPosition:Number)
		{
			super(MyScrollEvent.Scroll,false,false);
			this._scrollPosition=scrollPosition;
			this._maxScrollPosition=maxScrollPosition;
		}
		
		override public function clone():Event
		{
			return new MyScrollEvent(this.scrollPosition,this.maxScrollPosition);
		}

		/*getter & setter*/
		public function get scrollPosition():Number
		{
			return _scrollPosition;
		}

		public function get maxScrollPosition():Number
		{
			return _maxScrollPosition;
		}


	}
}